home *** CD-ROM | disk | FTP | other *** search
-
-
-
- LLLLDDDDGGGGEEEETTTTSSSSYYYYMMMMSSSSTTTTRRRR((((3333XXXX)))) LLLLDDDDGGGGEEEETTTTSSSSYYYYMMMMSSSSTTTTRRRR((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- ldgetsymstr - get a symbol type string
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssttttddddiiiioooo....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ffffiiiilllleeeehhhhddddrrrr....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyymmmmssss....hhhh>>>>
- ####iiiinnnncccclllluuuuddddeeee <<<<llllddddffffccccnnnn....hhhh>>>>
-
- iiiinnnntttt llllddddggggeeeettttssssyyyymmmmssssttttrrrr ((((ldptr, psymr,isym,buffer))))
- LLLLDDDDFFFFIIIILLLLEEEE ****ldptr;
- PPPPSSSSYYYYMMMMRRRR ****psymr;
- iiiinnnntttt isym;
- iiiinnnntttt flags;
- cccchhhhaaaarrrr ****buffer;
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- _l_d_g_e_t_s_y_m_s_t_r puts, in the caller-provided buffer, a string with whatever
- type information is available on the symbol passed in. There is no
- mechanism to prevent buffer overflow, so it is best to provide a large
- buffer. 2048 bytes should be 10 or 20 times the size of any reasonable
- string. The string put in bbbbuuuuffffffffeeeerrrr is terminated by a null(0) byte by
- _l_d_g_e_t_s_y_m_s_t_r.
-
- Both a symbol index (as is supplied to _l_d_t_b_r_e_a_d ) and a ppppSSSSYYYYMMMMRRRR ppppooooiiiinnnntttteeeerrrr
- pointing to the data for the indexed symbol (previously filled by a call
- to ldtbread) must be passed to _l_d_g_e_t_s_y_m_s_t_r.
-
- _l_d_g_e_t_s_y_m_s_t_r returns SSSSUUUUCCCCCCCCEEEESSSSSSSS if it has been able to access the symbol
- table or NNNNUUUULLLLLLLL if it has not.
-
- If the symbol is simply a label (as in assembler code), the string put in
- the buffer will be of length 0 (that is, the zero byte of the buffer will
- be set to 0).
-
- The program must be loaded with the object file access routine library
- lllliiiibbbbmmmmlllldddd....aaaa.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- fopen(3S), ldopen(3X), ldtbread(3X), ldclose(3X), ldfcn(4).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-